package cn.blackhole.simple.domain.circuitBreaker.service.impl;

import cn.blackhole.simple.domain.circuitBreaker.model.objValue.CircuitState;
import cn.blackhole.simple.domain.circuitBreaker.service.CircuitBreaker;

// 默认空实现熔断器
public class NoOpCircuitBreaker implements CircuitBreaker {

    @Override
    public boolean allowRequest() {
        return true;
    }

    @Override
    public void recordSuccess() {
    }

    @Override
    public void recordFailure() {
    }

    @Override
    public CircuitState getState() {
        return CircuitState.CLOSED;
    }
}